package chatRoom.com.fenwe.util;

import java.util.Random;

public class IDCreator {
    public static String get() {
        return System.currentTimeMillis() + getRandomNumberString(10);
    }

    private static String getRandomNumberString(int length) {
        Random random = new Random();
        StringBuffer sbBuffer = new StringBuffer();
        for (int i = 0; i < length; i++) {
            sbBuffer.append(random.nextInt(10));
        }
        return sbBuffer.toString();
    }

    public static void main(String[] args) {
        System.out.println(get());
    }
}
